package com.example.zz.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * <p>
 * 课表
 * </p>
 *
 * @author ${author}
 * @since 2021-01-14
 */
public class Course implements Serializable {

    private static final long serialVersionUID=1L;

    /**
     * 编号主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 学科外键
     */
    private Long subId;

    /**
     * 班级外键
     */
    private Long classId;

    /**
     * 授课老师外键
     */
    private Long teaId;

    /**
     * 开课时间
     */
    private LocalDateTime startTime;

    /**
     * 结束课程时间
     */
    private LocalDateTime endTime;

    /**
     * 班级群外键
     */
    private Integer flockId;

    /**
     * 修改时间
     */
    private LocalDateTime updateTime;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    /**
     * 乐观锁
     */
    private Integer version;

    /**
     * 逻辑删除
     */
    private Integer isDelete;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getSubId() {
        return subId;
    }

    public void setSubId(Long subId) {
        this.subId = subId;
    }

    public Long getClassId() {
        return classId;
    }

    public void setClassId(Long classId) {
        this.classId = classId;
    }

    public Long getTeaId() {
        return teaId;
    }

    public void setTeaId(Long teaId) {
        this.teaId = teaId;
    }

    public LocalDateTime getStartTime() {
        return startTime;
    }

    public void setStartTime(LocalDateTime startTime) {
        this.startTime = startTime;
    }

    public LocalDateTime getEndTime() {
        return endTime;
    }

    public void setEndTime(LocalDateTime endTime) {
        this.endTime = endTime;
    }

    public Integer getFlockId() {
        return flockId;
    }

    public void setFlockId(Integer flockId) {
        this.flockId = flockId;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public Integer getVersion() {
        return version;
    }

    public void setVersion(Integer version) {
        this.version = version;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "Course{" +
        "id=" + id +
        ", subId=" + subId +
        ", classId=" + classId +
        ", teaId=" + teaId +
        ", startTime=" + startTime +
        ", endTime=" + endTime +
        ", flockId=" + flockId +
        ", updateTime=" + updateTime +
        ", createTime=" + createTime +
        ", version=" + version +
        ", isDelete=" + isDelete +
        "}";
    }
}
